package it.crosato.stage.server.model.comparison;

import static org.junit.Assert.*;
import it.crosato.stage.server.model.retriever.PathwayRetriever;
import it.crosato.stage.shared.exceptions.NonExistentException;
import it.crosato.stage.shared.exceptions.RetrievingException;
import it.crosato.stage.shared.objects.Multiset;
import it.crosato.stage.shared.objects.Pathway;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;

public class SetsModellerTest {

	@Test
	public void testGetPathwaysModels() {
		try {
			Pathway[][] pathways = new Pathway[1][1];
			pathways[0][0] = new PathwayRetriever().getPathway("path:map00020", "hsa", 604800000);
			ISetsModeller setsModeller = new SetsModeller();
			Multiset[][] sets = setsModeller.getPathwaysModels(pathways, true);
			assertTrue(sets != null && sets.length > 0);
		}
		catch (RetrievingException re) { }
		catch (NonExistentException ne) { }
	}
	
	@Before
	public void setUp() {
		
	}
	
	@After
	public void tearDown() {
		
	}

}
